package drds.global_transaction.transaction_coordinator.transaction_session;

import drds.global_transaction.transaction_coordinator.store.OperationType;
import drds.global_transaction.transaction_coordinator.store.SessionStorable;
import drds.global_transaction.transaction_coordinator.store.TransactionStoreManager;
import drds.global_transaction.transaction_coordinator.store.TransactionWriteStore;

import java.util.List;

public class DefaultTransactionSessionManager extends AbstractTransactionSessionManager
{

	public DefaultTransactionSessionManager(String name)
	{
		super(name);
		transactionStoreManager = new TransactionStoreManager()
		{
			@Override
			public List<TransactionWriteStore> getTransactionWriteStoreListFromFile(int readSize, boolean isHistory)
			{
				return null;
			}

			@Override
			public boolean hasRemaining(boolean isHistory)
			{
				return false;
			}

			@Override
			public boolean saveOperation(SessionStorable sessionStorable, OperationType operationType)
			{
				return false;
			}

			@Override
			public void shutdown()
			{

			}
		};
	}
}
